import puppeteerManage from './puppeteerManage';
import ServiceBase from './ServiceBase';


// 渲染服务
export default class RenderService extends ServiceBase {


    // 渲染threejs场景
    render_threejs = async (params: any) => {
        const startTime = Date.now();
        const base64 = await puppeteerManage.renderScene(params);
        const endTime = Date.now();
        console.log('渲染threejs场景耗时:', endTime - startTime, 'ms');
        return base64;
    };
}